package com.pzhuweb.sgblog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.pzhuweb.sgblog.mapper")
@EnableScheduling   // 开启定时任务，就是每隔一段时间执行某些代码
@EnableSwagger2  // 生成接口文档
@EnableOpenApi
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
